Using parallelism for clear status track processing during error handling behavior in a storage system

ABSTRACT

Tracks of meta data are cleared in a storage server by allocating task control blocks for executing associated tasks in parallel. Throttling and recycling of task control blocks is provided to efficiently use memory and processing resources. Under the control of a master task, task control blocks are allocated to different hierarchical levels of storage resources in the storage server, such as a logical subsystem level and a subordinate volume level. The task control blocks are not deallocated from memory until there are no further tasks to process.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The invention relates generally to the field of computer systems and,more specifically, to a technique for efficiently clearing meta data ina storage system when an error occurs.

2. Description of the Related Art

Computer storage devices such as storage servers have high-capacity diskarrays to backup data from external host systems, such as host servers.For example, a large corporation or other enterprise may have a networkof servers that each store data for a number of workstations used byindividual employees. Periodically, the data on the host servers isbacked up to the high-capacity storage server to avoid data loss if thehost servers malfunction. A storage server may also backup data fromanother storage server, such as at a remote site. The storage serversare known to employ redundant systems to provide additional safeguardsagainst data loss. The IBM Enterprise Storage Server (ESS) is an exampleof such a storage server.

Moreover, meta data such as server system control data is oftenassociated with the storage resources. It is necessary to clear the metadata on occasion such as when an error occurs in the storage system.However, a performance problem can result when clearing the meta datadue to the required allocation of processing and memory resources.

BRIEF SUMMARY OF THE INVENTION

To address the above and other issues, the present invention provides amethod and system for clearing meta data associated with storageresources in a data storage system.

In one aspect of the invention, a method for clearing meta data in adata storage system includes determining a number N of task controlblocks to be used for implementing a plurality of tasks for clearing themeta data. The meta data is provided in tracks that are associated withthe storage resources, and the storage resources are arranged in ahierarchy including at least a first level and a lower second level. Themethod further includes implementing the tasks by allocating a firstsubset of the N task control blocks, comprising a first plurality of thetask control blocks, for first tasks for clearing first tracks of themeta data that are associated with the first level, and allocating asecond subset of the N task control blocks, comprising a secondplurality of the task control blocks, for second tasks for clearingsecond tracks of the meta data that are associated with the secondlevel.

In another aspect of the invention, a method for clearing meta data in adata storage system includes allocating task control blocks in a memoryresource in the data storage system for implementing a first pluralityof tasks for clearing the meta data in a second plurality of meta datatracks. The first plurality is less than the second plurality, and thesecond plurality of meta data tracks are associated with a plurality ofdifferent hierarchical levels of storage resources in the data storagesystem. The method further includes implementing throttling andrecycling of the task control blocks at the different hierarchicallevels to implement the first plurality of tasks.

In yet another aspect of the invention, a method for clearing meta datain a data storage system includes determining a number N of task controlblocks to be used for implementing a plurality of tasks for clearing themeta data. The meta data is provided in tracks that are associated withthe storage resources, and the storage resources are arranged in ahierarchy including at least a first level and a lower second level. Themethod further includes implementing the tasks by allocating a firstsubset of the N task control blocks, comprising a first plurality of thetask control blocks, for first tasks for clearing first tracks of themeta data that are associated with the first level, and allocating asecond subset of the N task control blocks, comprising a secondplurality of the task control blocks, for second tasks for clearingsecond tracks of the meta data that are associated with the secondlevel. The method further includes allocating at least a firstadditional one of the N task control blocks for implementing a firstmaster task for coordinating the allocating of the first subset of the Ntask control blocks, and reusing of the first task control blocks asinitial ones of the first tasks are completed to implement subsequentones of the first tasks, and allocating at least a second additional oneof the N task control blocks for implementing a second master task forcoordinating the allocating of the second subset of the N task controlblocks, and reusing of the second task control blocks as initial ones ofthe second tasks are completed to implement subsequent ones of thesecond tasks.

Corresponding data storage systems and program storage devices are alsoprovided.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other features, benefits and advantages of the presentinvention will become apparent by reference to the following text andfigures, with like reference numbers referring to like structures acrossthe views, wherein:

FIG. 1 illustrates an overview of a logical structure of a dual clusterstorage server;

FIG. 2 illustrates a hierarchy of storage resources and associated metadata;

FIG. 3 illustrates an allocation of task control blocks to the storageresources of FIG. 2;

FIG. 4 illustrates a master task allocation algorithm for allocatingtasks for clearing meta data for a logical subsystem (LSS); and

FIG. 5 illustrates processing of a task control block (TCB) for an LSSwhen it is executed;

FIG. 6 illustrates a master task allocation algorithm for allocatingtasks for clearing meta data for a volume; and

FIG. 7 illustrates processing of a task control block (TCB) for a volumewhen it is executed.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 illustrates an overview of a logical structure of a dual clusterstorage server. A storage server 100, which may an IBM EnterpriseStorage Server (ESS), for instance, is a high-capacity storage devicethat can back up data from a variety of different devices. For example,a large corporation or other enterprise may have a network of serversthat each store data for a number of workstations used by individualemployees. Periodically, the data on the host servers is backed up tothe high-capacity storage server 100 to avoid data loss if the hostservers malfunction. The storage server 100 can also provide datasharing between host servers since it is accessible to each host server.The storage server 100 itself has redundant storage resources to providean additional safeguard against data loss. As a further measure, thedata of the storage server 100 may be mirrored to another storageserver, typically at a remote site. A storage server of a particulartype, such as one that uses disk storage, may connect to one or moreother peer disk storage servers as well as to other storage devices,such as those using magnetic tape. A user interface may be provided toallow a user to access information regarding the status of the storageserver 100.

The example storage server 100 includes two clusters for redundancy.Each cluster 105, 110, e.g., “A” and “B”, respectively, worksindependently, and may include cluster processor complexes 120, 130 withcluster cache 124, 134, nonvolatile storage (NVS) 128, 138, and deviceadapters 140, 150. The device adapters (DA) 140, 150 are used to connectthe disks 160 to the cluster processor complexes 120, 130. Each cluster105, 110 contains four device adapters 140, 150. Each adapter is part ofa pair, one on each cluster. A pair supports two independent paths toall of the disk drives served by the pair. Each disk array is configuredto be accessed by only one of the clusters. However, if a clusterfailure occurs, the surviving cluster automatically takes over all ofthe disks. The disk arrays or ranks 160 can be configured as RAID 5(redundant array of independent disks) or non-RAID arrays.Alternatively, another high-capacity storage medium may be used. Thedisk arrays 160 are examples of storage resources that are arrangedhierarchically, as discussed further below.

Processors 122 and 132 execute instructions such as software, firmwareand/or microcode, stored in the respective cluster, such as in a regionof the respective cache that is preserved during a reboot, or in aseparate non-volatile memory, to achieve the functionality describedherein.

Host adapters (HAs) 170 are external interfaces that may support twoports, e.g., either small computer systems interface (SCSI) or IBM'senterprise systems connection (ESCON), which is an Enterprise SystemsArchitecture/390 and zSeries computer peripheral interface. This I/Ointerface uses ESA/390 logical protocols over a serial interface thatconfigures attached units to a communication fabric. For example, aremote storage server, host servers and a user interface may communicatewith the storage server 100 via the HAs. Fibre channel or fibre-channelconnection (FICON) has support for one channel per HA. Each HA connectsto both cluster processor complexes 120, 130 so that either cluster canhandle I/Os from any host adapter. A system adapter identificationnumber (SAID) is a unique identification number automatically assignedto each HA. The storage server 100 contains four host-adaptor bays, eachof which is connected to both clusters 105, 110 for redundancy.

FIG. 2 illustrates a hierarchy of storage resources and associated metadata. The storage resources in the storage server 100 may be arrangedhierarchically. In one possible approach, the device level is at thefirst, highest level of the hierarchy. The device level may include thestorage server 100. The second level represents storage resources withina specific device. For example, the storage server 100 may have logicalsubsystems (LSSs), which in turn are comprised of volumes, in the thirdlevel of the hierarchy. The LSS is a topological construct that includesa group of logical devices such as logical volumes, which may be unitsof recording medium associated with a logical disk drive. For example, alogical volume in a RAID array may be spread over the disks in thearray. The units may include sectors of one or more disks. Furthermore,meta data such as server system control data may be provided in tracksthat are part of the disk drives in a designated area of the disks. Metadata is typically provided for each of the subcomponents of the storageserver, such as cache, device adapter, copy services, hardware, etc.There may also be different types of meta data for a singlesubcomponent. For example, the Copy Services subcomponent may includeGlobal Meta Data and Segment Meta Data.

In the example hierarchy, the server level 200 is at the highest level.The LSSs, such as LSSs 205 and 210, are at the next level. The volumes,such as vol. 1 (220), vol. 2 (222), . . . , vol. 10 (224) under LSS 1(205), and vol. 1 (230), vol. 2 (232), . . . , vol. 10 (234) under LSS 2(210), are at the next, and lowest, level. The meta data for each of thestorage resources is also indicated. Of course, other arrangements arepossible. For example there may be more than, or fewer than, threehierarchical levels. Also, note that there are usually more LSSs andvolumes than what is shown in the simplified example of FIG. 2.

As mentioned, the tracks of meta data must be cleared at various times,such as when there is an error in the storage server 100. In this case,the meta data is cleared because the server is reset and the meta datawill no longer be valid. The meta data tracks may relate to copyservices that are performed by the server 100, such as the peer-to-peeror point-in-time copying mentioned previously. As indicated in FIG. 2,these tracks are designed to have an affinity at the server or boxlevel, the LSS level, and the volume level. Volume level tracks alsohave an LSS affinity since volumes are owned by a particular LSS.

The meta data tracks may be cleared in a process referred to as ClearStatus Tracks (CST). Specifically, CST is an operation that comesthrough the storage server's operating system (OS subcomponent). OS hasthe responsibility of notifying all other subcomponents (Cache, DeviceAdapters, Copy Services, etc.) that CST has been issued. It does this bysetting a flag. All subcomponents check this OS flag to determine if CSTwork is needed for their subcomponent. If so, the CST processing istriggered. During CST processing, all meta data tracks are cleared. Whenthe CST command is issued, all LSSs and volumes must have their metadata cleared. Specifically, when it is discovered, e.g., by queryinganother component, that the CST has been issued, a flag or bit in memorymay be set for every LSS and every volume on the storage server 100 forwhich CST is needed. The flags/bits may be organized into an array-likedata structure for the flags or a bitmap, e.g., an array of bits, wherethe index into the array represents the identifier (ID) of the LSS orvolume. The identifiers may be sequential numbers, for example. Asdiscussed further below, a counter may use these in-memory arrays tofind the next LSS or volume. The flags/bits are cleared when the CST hascompleted for the LSS or volume.

CST processing should complete before the end of initial microcode load(IML), when microcode is loaded into the caches 124 and 134 to re-startthe storage server 100. Because there are a large number of meta datatracks, clearing the tracks serially, one after another, may introduce aperformance problem due to the processing and memory requirements. Thisproblem can be addressed by parallelism. To achieve parallelism, atleast one Task Control Block (TCB) can be used for each level. The TCBis a location in memory that stores some contextual information aboutthe task it is executing, where the task involves clearing meta datasuch as in a meta data track. The LSS level will require more than oneTCB because it can further be subdivided into a global meta data leveland a volume meta data level. Each task can be used to delete the metadata of a given storage resource, such as an LSS or volume. Moreover, itis possible that a TCB can clear more than one meta data track at atime, but this has to be done serially, one track at a time.

However, the storage server 100 has a limited number of TCBs that can beallocated for clearing meta data because of memory and processinglimitations. That is, memory and processing resources must be availablefor other processes on the storage server 100 besides clearing metadata. Thus, it is necessary to control the use of TCBs so as not toexceed a maximum limit, which can be set by the storage system designer.The invention improves CST performance by using parallelism, while atthe same time throttling and recycling TCBs using a set number of tasks.In particular, throttling is implemented for a set number of tasks usinga task counter and recycling of task control blocks to postpone blockdeallocation from memory and improve task performance and overhead.Moreover, it provides a mechanism for the parallel tasks to divide upthe work and to recognize when all the work is complete. Unlike otherthrottling mechanisms, the CST process is for use with a finite numberof tasks. In addition, it reduces the overhead of allocating anddeallocating task control blocks for each task. All the necessary TCBsare allocated once, reused as a task completes and a new task must beexecuted, and deallocated when no other new tasks are necessary.

Multiple task counters may be implemented to track progress of the taskcontrol blocks. A first counter will represent the identifier (ID) ofthe next LSS TCB that needs to be executed. For each LSS, we will alsoimplement a second counter to track volume level clearing tasks. Thiscounter will represent the ID of the next volume TCB that needs to beexecuted for its owning LSS. Moreover, a master, or control, TCB may beimplemented to coordinate the allocation and recycling of TCBs for theclearing tasks. For LSS-level TCB allocation, this master TCB will bethe main driving TCB for the clearing function. For volume-level TCBallocation, the master TCB will be the LSS TCB allocated by the maindriving TCB.

An overview of the allocation of TCBs to the storage resources of FIG. 2is illustrated in FIG. 3. For example, assume there are a total of tenTCBs allocated at all levels—three at the LSS level, and seven at thevolume level. In practice, the number of TCBs is likely to be larger. Atthe server level 300, a first TCB (TCB 1) is the LSS master TCB, whichcontrols the allocation of TCBs at the LSS level, which includes LSS 1(305) and LSS 2 (310). TCB 1 allocates the next available TCB, TCB 2, toLSS 1 (305), and the next subsequent available TCB, TCB 3, to LSS 2(310). At the LSS level, TCB 1 controls allocation of TCBs at the volumelevel and in this way acts as the volume master. The same is true forTCB 2. Under LSS 1 (305), the volumes include vol. 1 (320), vol. 2(322), . . . , vol. 10 (324). Under LSS 2 (310), the volumes includevol. 1 (330), vol. 2 (332), . . . , vol. 10 (334). TCB 2 allocates thenext available TCBs as follows: TCB 4 is allocated to vol. 1 (320), TCB5 is allocated to vol. 2 (322), and TCBs 6-13 are allocated to volumes3-10, respectively, under LSS 1 (305).

Whenever a meta data clearing task associated with a TCB at the LSSlevel completes executing, the TCB can be reused for a next LSS.Similarly, whenever a meta data clearing task associated with a TCB atthe volume level completes executing, the TCB can be reused for a nextvolume. For example, when TCB 5 has completed the task for clearing themeta data of vol. 1 (320), this TCB may be allocated by the volumemaster TCB to the next volume, e.g., volume 7, under LSS 1 (305). If alltasks at a given level of the storage resources have completed, theassociated TCBs may be re-assigned to another level. This is truebecause all such TCBs were deallocated and became free for allocation bythe next TCB resource request. For example, if all tasks at the LSSlevel have completed, the associated TCBs may be re-assigned to thevolume level.

Generally, one TCB can be allocated at a time in order to wait for astatus to determine if each allocation request was successful. Thisallows us to know when all available TCBs in the whole system have beenallocated and there are no more available for use. However, as many TCBscan be allocated as desired in a single processing loop, as indicated inthe following pseudo code.

while (numAllocated < MAX_ALLOCATION_PER_LSS/VOL) { allocate TCB if(newly allocated TCB is not valid - i.e. there are no more availableTCBs in the system to use) invoke some service for handling thissituation that will break out of this loop else initialize/set up TCBdispatch TCB increment numAllocated }

When a TCB completes its task, it may follow this algorithm:

Try to find another LSS/volume that needs to be cleared If one is foundre-initialize TCB properties //<-This is when the TCB is being recycledfor use on a // different LSS/volume re-dispatch TCB Else there are noother LSSs/volumes that need clearing free/deallocate TCB If this is thelast TCB that has finished Invoke completion notification service

FIG. 4 illustrates a master task allocation algorithm for allocatingtasks for clearing meta data for an LSS. An analogous process occurs forclearing volume meta data (see FIGS. 6 and 7). N_(ALLOC-LSS-MAX) is themaximum number of TCBs that may be allocated for running tasks forclearing meta data for LSSs. N_(ALLOC-LSS) is the number of TCBscurrently allocated for running tasks for clearing meta data for LSSs.ID_(NEXT-LSS) is an identifier of a next LSS whose meta data is to becleared. ID_(LAST-LSS) is an identifier of a last LSS whose meta data isto be cleared.

At block 400, N_(ALLOC-LSS) and ID_(NEXT-LSS) are initialized to zero.At block 405, it is determined whether N_(ALLOC-LSS) is less thanN_(ALLOC-LSS-MAX). If so, the number of TCBs allocated has not reachedthe maximum number. At block 410, we search for the ID of the nextconfigured LSS to be cleared, e.g., by setting ID_(NEXT-LSS) to the IDof the next LSS for which a CST process is be executed. ID_(NEXT-LSS) isessentially a counter for tracking a progress of the LSS tasks byidentifying a next storage resource in the LSS level of the hierarchyfor which the associated track of meta data is to be cleared. AsID_(NEXT-LSS) increases toward ID_(LAST-LSS), the number of LSS tasksremaining decreases. At block 435, if ID_(NEXT-LSS)<ID_(LAST-LSS), thereare additional LSSs remaining whose meta data is to be cleared. Thisassumes identifiers are assigned to the LSSs starting, e.g., at one forthe first LSS, and incrementing toward higher numbers untilID_(LAST-LSS) is reached. If there are additional LSSs remaining whosemeta data is to be cleared, an available TCB is allocated at block 440,and, at block 445, the “worker” TCB is dispatched for task execution inclearing the LSS meta data for the LSS having the identifierID_(NEXT-LSS). At block 450, the number of allocated LSS TCBs,N_(ALLOC-LSS), is then incremented.

Processing then continues at block 405. Once the maximum number of LSSTCBs has been allocated, as determined at block 405, a determination ismade, at block 425, as to whether all allocated TCBs are finished, thatis, whether the associated task has finished clearing the meta data. Ifthey are finished, the process ends, at block 430. If all tasks are notfinished, the master LSS TCB stops and waits until a task completes.This last task has the responsibility of waking up the master LSS TCB.Specifically, if all TCBs are not finished, a sleep or wait periodoccurs at block 415, followed by a wake up at block 420. The wake up isperformed by the last task (FIG. 5, block 540). Another check is thenmade, at block 425, to determine whether all allocated TCBs arefinished.

The above approach represents the algorithm used to allocate LSS TCBs orvolume-master tasks. The LSS TCB/volume-master task will allocate oneTCB, a global meta data worker TCB, to handle global meta data tracksfirst. Then the LSS/volume-master task will use this same algorithm toallocate volume tasks, or volume worker TCBs. When a global meta dataworker TCB completes, it deallocates itself and determines if it shouldwake up the LSS/volume-master task. It will do so only if all volumeworker TCBs have all completed. When a volume worker TCB completes, itdetermines if there is a volume still needing CST. If so, the volumeworker TCB is reused for this pending volume. If all volume level CSThas finished for the LSS, the TCB can be deallocated. If the volumeworker is the last TCB allocated by the LSS/volume-master task to finishand deallocate, then the LSS/volume-master task is called back andawakened so the LSS/volume-master task can finish processing.

If the ID represented by the task counter is less than the maximum IDvalue for an LSS or a volume, the LSS/volume-master TCB searches for thenext configured LSS (or volume worker TCB searches for next volume)still needing to be cleared. If one is found, the TCB will then assignthis ID to itself and to the task counter. The modified TCB is thendispatched to perform clearing tasks for the “new” ID. If an ID is notfound, then there are no more tasks required and the TCB is freed. Allother TCBs that subsequently finish will also be freed since an ID willno longer be found and all remaining tasks have been started.

FIG. 5 illustrates processing of a task control block (TCB) for an LSSwhen it is executed. When a TCB is dispatched, it is added to a readyqueue for task execution. At block 500, the TCB that is associated witha task that is to be executed next is dequeued, which means it isremoved from the ready queue. At block 505, the associated TCB task isexecuted to clear meta data. At block 510, a check is made to determineif there is more work for the TCB. ID_(NEXT-LSS) is set to theidentifier of the next LSS for which a task is to be executed. At block520, if ID_(NEXT-LSS)<ID_(LAST-LSS), there are additional LSSs remainingwhose meta data is to be cleared. In this case, at block 525, a “worker”TCB is dispatched for task execution in clearing the LSS meta data trackfor the LSS having the identifier ID_(NEXT-LSS). If there are noadditional LSSs remaining whose meta data is to be cleared, the TCB isdeallocated at block 515. This means the memory resource which had beenallocated to the TCB is freed for other uses. At block 530, if thecurrent TCB is the last TCB to complete, the LSS master task is woken upat block 540. If the current TCB is not the last TCB to complete, theprocess ends at block 535. The master volume task (e.g., the LSS TCB)sleeps until the last volume worker task wakes it up. When this mastervolume task wakes up, it checks to see if there are more LSSs toprocess. If there are none, and it is the last task to be done, then itwakes up the master LSS task (e.g., the overall server task). When theserver task wakes up, the CST process is complete.

Volume tasks will follow the above approach as well to find work ordetermine when the volume master task must be awakened. Volume mastertasks will follow this approach to find work or determine when the LSSMaster (i.e. server level) task must be awakened.

FIG. 6 illustrates a master task allocation algorithm for allocatingtasks for clearing meta data for a volume. N_(ALLOC-VOL.-MAX) is themaximum number of TCBs that may be allocated for running tasks forclearing meta data for volumes. N_(ALLOC-VOL). is the number of TCBscurrently allocated for running tasks for clearing meta data forvolumes. ID_(NEXT-VOL). is an identifier of a next volume whose metadata is to be cleared. ID_(LAST-VOL.) is an identifier of a last volumewhose meta data is to be cleared.

At block 600, N_(ALLOC-VOL). and ID_(NEXT-VOL). are initialized to zero.At block 605, it is determined whether N_(ALLOC-VOL). is less thanN_(ALLOC-VOL.-MAX). If so, the number of TCBs allocated has not reachedthe maximum number. At block 610, we search for the ID of the nextconfigured volume to be cleared, e.g., by setting ID_(NEXT-VOL). to theID of the next volume for which a CST process is be executed.ID_(NEXT-VOL). is essentially a counter for tracking a progress of thevolume tasks by identifying a next storage resource in the volume levelof the hierarchy for which the associated track of meta data is to becleared. As ID_(NEXT-VOL). increases toward ID_(LAST-VOL.), the numberof volume tasks remaining decreases. At block 635, ifID_(NEXT-VOL.)<ID_(LAST-VOL.), there are additional volumes remainingwhose meta data is to be cleared. This assumes identifiers are assignedto the volumes starting, e.g., at one for the first volume, andincrementing toward higher numbers until ID_(LAST-VOL). is reached. Ifthere are additional volumes remaining whose meta data is to be cleared,an available TCB is allocated at block 640, and, at block 645, the“worker” TCB is dispatched for task execution in clearing the volumemeta data track for the volume having the identifier ID_(NEXT-VOL.). Atblock 650, the number of allocated volume TCBs, N_(ALLOC-VOL.), is thenincremented. Processing then continues at block 605. Once the maximumnumber of volume TCBs has been allocated, as determined at block 605, adetermination is made, at block 625, as to whether all allocated TCBsare finished, that is, whether the associated task has finished clearingthe meta data. If they are finished, the process ends, at block 630. Ifall tasks are not finished, the master volume TCB stops and waits untila task completes. The last task to complete has the responsibility ofwaking up the master volume TCB. Specifically, if all TCBs are notfinished, a sleep or wait period occurs at block 615, followed by a wakeup at block 620. The wake up is performed by the last task (FIG. 7,block 740). Another check is then made, at block 625, to determinewhether all allocated TCBs are finished.

FIG. 7 illustrates processing of a task control block (TCB) for a volumewhen it is executed. When a TCB is dispatched, it is added to a readyqueue for task execution. At block 700, the TCB that is associated witha task that is to be executed next is dequeued. At block 705, theassociated TCB task is executed to clear meta data. At block 710, acheck is made to determine if there is more work for the TCB.ID_(NEXT-VOL.) is set to the identifier of the next volume for which atask is to be executed. At block 720, if ID_(NEXT-VOL.)<ID_(LAST-VOL.),there are additional volumes remaining whose meta data is to be cleared.In this case, at block 725, a “worker” TCB is dispatched for taskexecution in clearing the volume meta data track for the volume havingthe identifier ID_(NEXT-VOL.). If there are no additional volumesremaining whose meta data is to be cleared, the TCB is deallocated atblock 715. This means the memory resource that had been allocated to theTCB is freed for other uses. At block 730, if the current TCB is thelast TCB to complete, the master task is woken up at block 740. If thecurrent TCB is not the last TCB to complete, the process ends at block735. The master volume task (e.g., the LSS level TCB) sleeps until thelast volume worker task wakes it up. When this master volume task wakesup, it checks to see if there are more volumes to process. If there arenone, and it is the last task to be done, then it wakes up the masterLSS task (e.g., the overall server task). When the server task wakes up,the CST process is complete.

The invention has been described herein with reference to particularexemplary embodiments. Certain alterations and modifications may beapparent to those skilled in the art, without departing from the scopeof the invention. The exemplary embodiments are meant to beillustrative, not limiting of the scope of the invention, which isdefined by the appended claims.

1. A method for clearing meta data in a data storage system, comprising:determining a number N of task control blocks to be used forimplementing a plurality of tasks for clearing the meta data; whereinthe meta data is provided in tracks that are associated with the storageresources, and the storage resources are arranged in a hierarchyincluding at least a first level and a lower second level; andimplementing the tasks by allocating a first subset of the N taskcontrol blocks, comprising a first plurality of the task control blocks,for first tasks for clearing first tracks of the meta data that areassociated with the first level, and allocating a second subset of the Ntask control blocks, comprising a second plurality of the task controlblocks, for second tasks for clearing second tracks of the meta datathat are associated with the second level; wherein said first and secondallocated subsets clear the first tracks of the meta data at the atleast first level and the second tracks of the meta data at the lowersecond level of the storage resources.
 2. The method of claim 1, furthercomprising: reusing the first task control blocks as initial ones of thefirst tasks are completed to implement subsequent ones of the firsttasks; and reusing the second task control blocks as initial ones of thesecond tasks are completed to implement subsequent ones of the secondtasks.
 3. The method of claim 2, further comprising: de-allocating taskcontrol blocks in the first subset of the N task control blocks onlyafter they are no longer need for re-use; and de-allocating task controlblocks in the second subset of the N task control blocks only after allthey are no longer need for re-use.
 4. The method of claim 1, furthercomprising: maintaining a first counter for tracking a progress of thefirst tasks, and a second counter for tracking a progress of the secondtasks.
 5. The method of claim 4, wherein: the first counter identifies anext storage resource in the first level for which the associated firsttrack of meta data is to be cleared; and the second counter identifies anext storage resource in the second level for which the associatedsecond track of meta data is to be cleared.
 6. The method of claim 1,wherein: the first level of the storage resources comprises at least onelogical subsystem, and the second level of the storage resourcescomprises a plurality of volumes associated with the at least onelogical subsystem.
 7. The method of claim 1, further comprising:allocating at least a first additional one of the N task control blocksfor implementing a first master task for coordinating the allocating ofthe first subset of the N task control blocks; and allocating at least asecond additional one of the N task control blocks for implementing asecond master task for coordinating the allocating of the second subsetof the N task control blocks.
 8. The method of claim 7, wherein: thefirst master task coordinates reusing of the first task control blocksas initial ones of the first tasks are completed to implement subsequentones of the first tasks, and the second master task coordinates reusingof the second task control blocks as initial ones of the second tasksare completed to implement subsequent ones of the second tasks.
 9. Themethod of claim 1, wherein: the first and second tasks are implementedin parallel.
 10. The method of claim 1, wherein: the N task controlblocks comprise respective blocks of a memory resource.
 11. The methodof claim 1, wherein: the storage resources comprise disks, and the metadata is provided in tracks of the disks.
 12. A data storage system,comprising: a memory resource for storing software instructions; and aprocessing resource associated with the memory for executing thesoftware instructions for: determining a number N of task control Hocksto be used for implementing a plurality of tasks for clearing the metadata; wherein the meta data is provided in tracks that are associatedwith the storage resources, and the storage resources are arranged in ahierarchy including at least a first level and a lower second level; andimplementing the tasks by allocating a first subset of the N taskcontrol blocks, comprising a first plurality of the task control blocks,for first tasks for clearing first tracks of the meta data that areassociated with the first level, and allocating a second subset of the Ntask control blocks, comprising a second plurality of the task controlblocks, for second tasks for clearing second tracks of the meta datathat are associated with the second level; wherein said first and secondallocated subsets clear the first tracks of the meta data at the firstlevel and second tracks of the meta data at the second level of thestorage resources.
 13. A program storage device, tangibly embodying aprogram of instructions executable by a processing resource in a datastorage system to perform a method for clearing meta data in the datastorage system, the method comprising: determining a number N of taskcontrol blocks to be used for implementing a plurality of tasks forclearing the meta data; wherein the meta data is provided in tracks thatare associated with the storage resources, and the storage resources arearranged in a hierarchy including at least a first level and a lowersecond level; and implementing the tasks by allocating a first subset ofthe N task control blocks, comprising a first plurality of the taskcontrol blocks, for first tasks for clearing first tracks of the metadata that are associated with the first level, and allocating a secondsubset of the N task control blocks, comprising a second plurality ofthe task control blocks, for second tasks for clearing second tracks ofthe meta data that are associated with the second level; wherein saidfirst and second allocated subsets clear the first tracks of the metadata associated with the fist level and the second tracks of the metadata associated with the second level of the storage resources.
 14. Amethod for clearing meta data in a data storage system, comprising:allocating task control blocks in a memory resource in the data storagesystem for implementing a fist plurality of tasks for clearing the metadata in a second plurality of meta data tracks; wherein the fistplurality is less than the second plurality, and the second plurality ofmeta data tracks are associated with a plurality of differenthierarchical levels of storage resources in the data storage system;implementing throttling and recycling of the task control blocks at thedifferent hierarchical levels to implement the first plurality of tasksand clearing the meta data from the second plurality of meta datatracks.
 15. The method of claim 14, wherein: the task control blocks areallocated among the different hierarchical levels.
 16. The method ofclaim 14, wherein: the first plurality of tasks are implemented inparallel.
 17. The method of claim 14, wherein: allocating task controlblocks in the memory resource for implementing a respective master taskfor each of the respective different hierarchical levels forcoordinating the implementing of the throttling and recycling of thetask control blocks at the respective different hierarchical levels. 18.The method of claim 14, wherein: maintaining respective counters fortracking a progress of the first plurality of tasks for clearing themeta data tracks in the respective different hierarchical levels. 19.The method of claim 18, wherein: the respective counters identify a nextstorage resource in each of the respective different hierarchical levelsfor which the associated meta data track is to be cleared.
 20. A datastorage system, comprising: a memory resource for storing softwareinstructions; and a processing resource associated with the memory forexecuting the software instructions for: allocating task control blocksin a memory resource in the data storage system for implementing a firstplurality of tasks for clearing the meta data in a second plurality ofmeta data tracks; wherein the first plurality is less than the secondplurality, and the second plurality of meta data tracks are associatedwith a plurality of different hierarchical levels of storage resourcesin the data storage system; implementing throttling and recycling of thetask control blocks at the different hierarchical levels to implementthe first plurality of tasks and clearing the meta data from the secondplurality of meta data tracks.
 21. A program storage device, tangiblyembodying a program of instructions executable by a processing resourcein a data storage system to perform a method for clearing meta data inthe data storage system, the method comprising: allocating task controlblocks in a memory resource in the data storage system for implementinga first plurality of tasks for clearing the meta data in a secondplurality of meta data tracks; wherein the first plurality is less thanthe second plurality, and the second plurality of meta data tracks areassociated with a plurality of different hierarchical levels of storageresources in the data storage system; implementing throttling andrecycling of the task control blocks at the different hierarchicallevels to implement the first plurality of tasks and clearing the metadata from the second plurality of meta data tracks.
 22. A method forclearing meta data in a data storage system, comprising: determining anumber N of task control blocks to be used for implementing a pluralityof tasks for clearing the meta data; wherein the meta data is providedin tracks that are associated with storage resources of the data storagesystem, wherein the storage resources are arranged in a hierarchyincluding at least a first level and a lower second level; andimplementing the tasks by allocating a first subset of the N taskcontrol blocks, comprising a first plurality of the task control blocks,for first tasks for clearing first tracks of the meta data that areassociated with the first level, and allocating a second subset of the Ntask control blocks, comprising a second plurality of the task controlblocks, for second tasks for clearing second tracks of the meta datathat are associated with the second level; allocating at least a firstadditional one of the N task control blocks for implementing a firstmaster task for coordinating the allocating of the first subset of the Ntask control blocks, and reusing of the first task control blocks asinitial ones of the first tasks are completed to implement subsequentones of the first tasks; and allocating at least a second additional oneof the N task control blocks for implementing a second master task forcoordinating the allocating of the second subset of the N task controlblocks, and reusing of the second task control blocks as initial ones ofthe second tasks are completed to implement subsequent ones of thesecond tasks; wherein said first and second allocated subsets clear themeta data tracks associated with the first level and the meta datatracks associated with the second level of the storage resources of thedata storage system.
 23. A data storage system, comprising: a memoryresource for storing software instructions; and a processing resourceassociated with the memory for executing the software instructions for:determining a number N of task control blocks to be used forimplementing a plurality of tasks for clearing the meta data; whereinthe meta data is provided in tracks that are associated with the storageresources, and the storage resources are arranged in a hierarchyincluding at least a first level and a lower second level; andimplementing the tasks by allocating a first subset of the N taskcontrol blocks, comprising a first plurality of the task control blocks,for first tasks for clearing first tracks of the meta data that areassociated with the first level, and allocating a second subset of the Ntask control blocks, comprising a second plurality of the task controlblocks, for second tasks for clearing second tracks of the meta datathat are associated with the second level; allocating at least a firstadditional one of the N task control blocks for implementing a firstmaster task for coordinating the allocating of the first subset of the Ntask control blocks, and reusing of the first task control blocks asinitial ones of the first tasks are completed to implement subsequentones of the first tasks; and allocating at least a second additional oneof the N task control blocks for implementing a second master task forcoordinating the allocating of the second subset of the N task controlblocks, and reusing of the second task control blocks as initial ones ofthe second tasks are completed to implement subsequent ones of thesecond tasks; wherein said first and second allocated subsets clear themeta data tracks associated with the first level and the second level ofthe storage resources.
 24. A program storage device, tangibly embodyinga program of instructions executable by a processing resource in a datastorage system to perform a method for clearing meta data in the datastorage system, the method comprising: determining a number N of taskcontrol blocks to be used for implementing a plurality of tasks forclearing the meta data; wherein the meta data is provided in tracks thatare associated with the storage resources, and the storage resources arearranged in a hierarchy including at least a first level and a lowersecond level; and implementing the tasks by allocating a first subset ofthe N task control blocks, comprising a first plurality of the taskcontrol blocks, for first tasks for clearing first tracks of the metadata that are associated with the first level, and allocating a secondsubset of the N task control blocks, comprising a second plurality ofthe task control blocks, for second tasks for clearing second tracks ofthe meta data that are associated with the second level; allocating atleast a first additional one of the N task control blocks forimplementing a first master task for coordinating the allocating of thefirst subset of the N task control blocks, and reusing of the first taskcontrol blocks as initial ones of the first tasks are completed toimplement subsequent ones of the first tasks; and allocating at least asecond additional one of the N task control blocks for implementing asecond master task for coordinating the allocating of the second subsetof the N task control blocks, and reusing of the second task controlblocks as initial ones of the second tasks are completed to implementsubsequent ones of the second tasks; wherein said first and secondallocated subsets clear the meta data tracks at both the at least firstlevel and the lower second level of the storage resources.